package cn.cvs.service.impl;

import cn.cvs.dao.AuctionuserDao;
import cn.cvs.entity.Auctionuser;
import cn.cvs.service.AuctionuserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service("auctionuserService")
public class AuctionuserServiceImpl implements AuctionuserService {
    @Resource
    private AuctionuserDao auctionuserDao;


    @Override
    public int addUser(Auctionuser auctionuser) {
        return auctionuserDao.addUser(auctionuser);
    }

    @Override
    public Auctionuser login(String name, String pwd) {
        return auctionuserDao.login(name,pwd);
    }

    @Override
    public int count() {
        return auctionuserDao.count();
    }
}
